package com.java.comprehensive.design.behavioral_model.visitor_pattern;

/**
 * @Author 窦绍飞
 * @create 2023/3/2
 */
public class Someone implements Person {
    public void feed(Dog dog) {
        System.out.println("其他人喂食狗");
    }

    public void feed(Cat cat) {
        System.out.println("其他人喂食猫");
    }
}
